import java.util.Comparator;

public class StartComparator implements Comparator<VideoSegment> {

	@Override
	public int compare(VideoSegment o1, VideoSegment o2) {
		int start1 = o1.start;
		int start2 = o2.start;
		if (start1 > start2)
			return 1;
		else if (start1 < start2)
			return -1;
		else
			return 0;
	}

}
